package c.c.c.a.i;

import android.content.Context;
import c.c.c.a.h;
import java.util.Map;

/* compiled from: CommonParams */
public class b {
    public Context a;
    public h b;
    public Map<String, Object> c;

    public b(Context context, h hVar) {
        this.a = context;
        this.b = hVar;
    }

    /* JADX WARNING: Removed duplicated region for block: B:54:0x00d2  */
    /* JADX WARNING: Removed duplicated region for block: B:48:0x00b9 A:{SYNTHETIC, Splitter:B:48:0x00b9} */
    /* JADX WARNING: Removed duplicated region for block: B:54:0x00d2  */
    public java.util.Map<java.lang.String, java.lang.Object> a() {
        /*
        r8 = this;
        r0 = r8.b;
        r0 = r0.a();
        if (r0 != 0) goto L_0x000e;
    L_0x0008:
        r0 = new java.util.HashMap;
        r1 = 4;
        r0.<init>(r1);
    L_0x000e:
        r1 = r0.isEmpty();
        r2 = "version_name";
        r3 = "update_version_code";
        r4 = "version_code";
        if (r1 != 0) goto L_0x0037;
    L_0x001a:
        r1 = "app_version";
        r1 = r0.containsKey(r1);
        if (r1 != 0) goto L_0x0028;
    L_0x0022:
        r1 = r0.containsKey(r2);
        if (r1 == 0) goto L_0x0037;
    L_0x0028:
        r1 = r0.containsKey(r4);
        if (r1 == 0) goto L_0x0037;
    L_0x002e:
        r1 = r0.containsKey(r3);
        if (r1 != 0) goto L_0x0035;
    L_0x0034:
        goto L_0x0037;
    L_0x0035:
        r1 = 0;
        goto L_0x0038;
    L_0x0037:
        r1 = 1;
    L_0x0038:
        if (r1 == 0) goto L_0x00d9;
    L_0x003a:
        r1 = 0;
        r5 = r8.a;	 Catch:{ all -> 0x0079 }
        r5 = r5.getPackageManager();	 Catch:{ all -> 0x0079 }
        r6 = r8.a;	 Catch:{ all -> 0x0079 }
        r6 = r6.getPackageName();	 Catch:{ all -> 0x0079 }
        r7 = 128; // 0x80 float:1.794E-43 double:6.32E-322;
        r5 = r5.getPackageInfo(r6, r7);	 Catch:{ all -> 0x0079 }
        r6 = r5.versionName;	 Catch:{ all -> 0x0079 }
        r0.put(r2, r6);	 Catch:{ all -> 0x0079 }
        r6 = r5.versionCode;	 Catch:{ all -> 0x0079 }
        r6 = java.lang.Integer.valueOf(r6);	 Catch:{ all -> 0x0079 }
        r0.put(r4, r6);	 Catch:{ all -> 0x0079 }
        r6 = r0.get(r3);	 Catch:{ all -> 0x0079 }
        if (r6 != 0) goto L_0x00d9;
    L_0x0061:
        r5 = r5.applicationInfo;	 Catch:{ all -> 0x0079 }
        r5 = r5.metaData;	 Catch:{ all -> 0x0079 }
        if (r5 == 0) goto L_0x006e;
    L_0x0067:
        r6 = "UPDATE_VERSION_CODE";
        r5 = r5.get(r6);	 Catch:{ all -> 0x0079 }
        goto L_0x006f;
    L_0x006e:
        r5 = r1;
    L_0x006f:
        if (r5 != 0) goto L_0x0075;
    L_0x0071:
        r5 = r0.get(r4);	 Catch:{ all -> 0x0079 }
    L_0x0075:
        r0.put(r3, r5);	 Catch:{ all -> 0x0079 }
        goto L_0x00d9;
    L_0x0079:
        r5 = r8.a;
        r5 = c.c.c.a.m.b.g(r5);
        r6 = c.c.c.a.m.b.d;
        if (r6 != 0) goto L_0x008f;
    L_0x0083:
        if (r5 == 0) goto L_0x008f;
    L_0x0085:
        r6 = "VERSION_NAME";
        r5 = r5.getDeclaredField(r6);	 Catch:{ NoSuchFieldException -> 0x008e }
        c.c.c.a.m.b.d = r5;	 Catch:{ NoSuchFieldException -> 0x008e }
        goto L_0x008f;
    L_0x008f:
        r5 = c.c.c.a.m.b.d;
        if (r5 == 0) goto L_0x009a;
    L_0x0093:
        r5 = r5.get(r1);	 Catch:{ all -> 0x009a }
        r5 = (java.lang.String) r5;	 Catch:{ all -> 0x009a }
        goto L_0x009c;
    L_0x009a:
        r5 = "";
    L_0x009c:
        r0.put(r2, r5);
        r2 = r8.a;
        r2 = c.c.c.a.m.b.g(r2);
        r5 = c.c.c.a.m.b.e;
        if (r5 != 0) goto L_0x00b5;
    L_0x00a9:
        if (r2 == 0) goto L_0x00b5;
    L_0x00ab:
        r5 = "VERSION_CODE";
        r2 = r2.getDeclaredField(r5);	 Catch:{ NoSuchFieldException -> 0x00b4 }
        c.c.c.a.m.b.e = r2;	 Catch:{ NoSuchFieldException -> 0x00b4 }
        goto L_0x00b5;
    L_0x00b5:
        r2 = c.c.c.a.m.b.e;
        if (r2 == 0) goto L_0x00c4;
    L_0x00b9:
        r1 = r2.get(r1);	 Catch:{ all -> 0x00c4 }
        r1 = (java.lang.Integer) r1;	 Catch:{ all -> 0x00c4 }
        r1 = r1.intValue();	 Catch:{ all -> 0x00c4 }
        goto L_0x00c5;
    L_0x00c4:
        r1 = -1;
    L_0x00c5:
        r1 = java.lang.Integer.valueOf(r1);
        r0.put(r4, r1);
        r1 = r0.get(r3);
        if (r1 != 0) goto L_0x00d9;
    L_0x00d2:
        r1 = r0.get(r4);
        r0.put(r3, r1);
    L_0x00d9:
        return r0;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.c.c.a.i.b.a():java.util.Map");
    }
}
